#include<stdlib.h>
#include<stdio.h>
#include<unistd.h>
#include<fcntl.h>
#include <sys/stat.h>


int main()
{
    int erase_all;
    int fd_erase;
    struct stat st;
    

    int a = -1;
    unsigned char str[8] = "cpbin02";

    //fd_erase = open("erase_all.ini", O_RDWR | O_CREAT);
    //write(fd_erase, "erase all partition", sizeof("erase all partition"));
    //close(fd_erase);

    if(!stat("./erase_all.ini", &st)){
        printf("erase_all.ini size is %d\n", st.st_size);
    }

    return 0;
}
